package wan.com.templateproject.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author wan
 * @version 1.0.0
 * @Description 基础返回值实体
 * @createTime 2021年10月22日 17:50:55
 */
@Data
@AllArgsConstructor
public class BaseResponse<T> {

    @ApiModelProperty(value = "状态码")
    private Integer code;

    @ApiModelProperty(value = "状态描述")
    private String message;

    @ApiModelProperty(value = "返回数据")
    private T data;

    public BaseResponse() {
        this.code = 200;
        this.message = "成功";
    }
}
